<!DOCTYPE HTML>
<script src="/js-test-resources/js-test.js"></script>
<script src="resources/supported-xml-content-types.js"></script>
<script>
description("Test identification of XML content type in XHR responses.");
window.jsTestIsAsync = true;
if (window.testRunner)
    testRunner.dumpAsText();

// valid types
testXMLType("text/xml", true);
testXMLType("image/svg+xml", true);
testXMLType("application/soap+xml", true);
testXMLType("foo/bar+xml", true);
testXMLType("123/BAR+xml", true);

// non-xml types
testXMLType("text/html", false);
testXMLType("image/png", false);

// invalid types
testXMLType("invalid", false);

runNextTest();
</script>
